/*
 * Script to display the createOpenEvent form
 * 
 * Author: Chris Casola
 */

(function() {
	
	/**
	 * Displays the createClosedEvent form on the page
	 */
	function CreateOpenEventForm(appFrame) {
		this.frame = appFrame;
		
		this.displayForm = function() {
			var content = "<section id='openInputForm' class='inputForm'>" +
							"<p>Username</p>" +
							"<input type='text' id='openUsername' name='openUserName' size='15' /><br />" +
							"<p>What is the maximum number of choices?<span class='tip' id='maxChoicesTip'>[?]</span></p>" +
							"<input type='text' id='openNumChoices' name='openNumChoices' size='15' /><br />" +
							"<p>How many rounds would you like to play?<span class='tip' id='closedRoundsTip'>[?]</span></p>" +
							"<input type='text' id='openNumRounds' name='openNumRounds' size='15' /><br />" +
							"</section>";
			return content;
		}
	}
	
	window.CreateOpenEventForm = CreateOpenEventForm;
}).call();
